package com.juyu.miliao.api.controller;

import com.juyu.miliao.api.service.TalkingSkillService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Auther: 卜加超
 * @Date: 2019/4/10 15:40
 * @Description:
 */
@RestController
@RequestMapping("talkingSkill")
public class TalkingSkillController {
    @Resource
    private TalkingSkillService talkingSkillService;

    /**
     * 发送系统消息
     * @return
     */
    @GetMapping("/{outId}-{insertId}/{num}")
    public void getTalkingSkillOne(@PathVariable("outId")long outId,@PathVariable("insertId")long insertId,@PathVariable("num")int num){
        talkingSkillService.sendTalking(outId,insertId,num);
    }
}
